﻿

using SmartWMS.Common.ResponseOutput;
using SmartWMS.Server.SystemSets.RoleServices.Dto;

namespace SmartWMS.Server.SystemSets.RoleServices
{
    public interface IRoleSerivce : ITransientServer
    {

        Task<Response<bool>> AddRoleAsyne(RoleDto role);
        Task<Response<List<RoleDto>>> GetRoleDtoAsyne(string? name);
        Task<Response<bool>> DelRoleDtoAsyne(RoleDto input);
        Response<RoleDto> RackRoleDto(int id);
        Task<Response<bool>> UpdRoleAsync(RoleDto input);
        List<PermissionDto> GetRoleMoent(int pid);
        Task<Response<bool>> AddRolePermissionAsync(RoleInput rolePermission);
        Task<List<int>> SelRolePermissionAsync(RoleInput rolePermission);




        ///// <summary>
        ///// 人员列表
        ///// </summary>
        ///// <returns></returns>
        //Task<Response<List<RoleDto>>> GetRoleListAsync();
        ///// <summary>
        ///// 角色分配权限
        ///// </summary>
        ///// <param name="roleInput"></param>
        ///// <returns></returns>
        //Task<Response<bool>> AddPermissionRoleAsync(RoleInput input);
    }
}
